<?php
namespace  app\common\model;

use think\Db;
use think\Model;

class ProjectRiskinfo extends BaseModel
{
    public function  project(){
        return $this->hasOne('project','id','project_id')->field('id,title,status as p_statsus');
    }
    public function  risk(){
        return $this->hasOne('project_risk','id','risk_id')->field('id,plan_name,status');
    }
    
    public function  plan(){
        return $this->hasOne('project_plan','id','plan_id')->field('id,title');
    }

}